/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package validator;

import org.springframework.validation.Errors;
import org.springframework.validation.Validator;
import pojo.Nguoidung;

/**
 *
 * @author BlueZky
 */
public class DangkyValidator implements Validator {

    @Override
    public boolean supports(Class<?> type) {
        return Nguoidung.class.isAssignableFrom(type);
    }

    @Override
    public void validate(Object o, Errors errors) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
}
